#include <cstdio>    // 1
#include <cstdlib>   // 1
#include <iostream>  // 2

#include "config.h"  // 3

int main(int argc, char* argv[]) {
  // 1
  printf("recv argument: %d\n", argc);
  int number = atoi(argv[1]);
  printf("printf: num * num = %d\n", number * number);

  // 2, use c++11
  const double inputValue = std::stod(argv[1]);
  std::cout << "c11: num * num = " << inputValue << std::endl;

  // 3
  std::cout << "version: " << PROJECT_VERSION_MAJOR << "."
            << PROJECT_VERSION_MINOR << std::endl;

  return 0;
}
